package com.ruoyi.swla2.service.impl;

import com.ruoyi.swla2.domain.BasicDyh;
import com.ruoyi.swla2.mapper.BasicDyhMapper;
import com.ruoyi.swla2.service.IBasicDyhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 大用户配置Service业务层处理
 *
 * @author gdqt
 * @date 2023-06-16
 */
@Service
public class BasicDyhServiceImpl implements IBasicDyhService {
    @Autowired
    private BasicDyhMapper basicDyhMapper;

    /**
     * 查询大用户配置
     *
     * @param ID 大用户配置主键
     * @return 大用户配置
     */
    @Override
    public BasicDyh selectBasicDyhByID(Long ID) {
        return basicDyhMapper.selectBasicDyhByID(ID);
    }

    /**
     * 查询大用户配置列表
     *
     * @param basicDyh 大用户配置
     * @return 大用户配置
     */
    @Override
    public List<BasicDyh> selectBasicDyhList(BasicDyh basicDyh) {
        return basicDyhMapper.selectBasicDyhList(basicDyh);
    }

    /**
     * 新增大用户配置
     *
     * @param basicDyh 大用户配置
     * @return 结果
     */
    @Override
    public int insertBasicDyh(BasicDyh basicDyh) {
        return basicDyhMapper.insertBasicDyh(basicDyh);
    }

    /**
     * 修改大用户配置
     *
     * @param basicDyh 大用户配置
     * @return 结果
     */
    @Override
    public int updateBasicDyh(BasicDyh basicDyh) {
        return basicDyhMapper.updateBasicDyh(basicDyh);
    }

    /**
     * 批量删除大用户配置
     *
     * @param IDs 需要删除的大用户配置主键
     * @return 结果
     */
    @Override
    public int deleteBasicDyhByIDs(Long[] IDs) {
        return basicDyhMapper.deleteBasicDyhByIDs(IDs);
    }

    /**
     * 删除大用户配置信息
     *
     * @param ID 大用户配置主键
     * @return 结果
     */
    @Override
    public int deleteBasicDyhByID(Long ID) {
        return basicDyhMapper.deleteBasicDyhByID(ID);
    }

    @Override
    public BasicDyh getBasicDyhByAreaId(String areaId) {
        return basicDyhMapper.getBasicDyhByAreaId(areaId);
    }
}
